
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class HuoyueduRewardCfg : public ManualSingleton <HuoyueduRewardCfg>
{
	friend ManualSingleton <HuoyueduRewardCfg>;
public:
	HuoyueduRewardCfg();
	~HuoyueduRewardCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const HuoyueduRewardCfgInfo *GetHuoyueduRewardCfgInfo(int32_t id);
	const HuoyueduRewardCfgMap *GetHuoyueduRewardCfgMap() { return &m_HuoyueduRewardCfgMap; }
private:
	HuoyueduRewardCfgMap m_HuoyueduRewardCfgMap;
};

#define  g_MakeHuoyueduRewardCfgTable() (HuoyueduRewardCfg::Instance())
#define  g_GetHuoyueduRewardCfgTable() (HuoyueduRewardCfg::GetInstance())
#define  g_DelHuoyueduRewardCfgTable() (HuoyueduRewardCfg::Destroy())